package top.marken.onlineclass.config;

public class CacheKeyManager {
    /**
     * 视频模块的轮播图列表key
     */
    public static final String VIDEO_BANNER = "video:banner";
    /**
     * 视频模块的所有视频列表key
     */
    public static final String VIDEO_LIST = "video:list";
    /**
     * 视频详情信息，%s用来拼接视频ID
     */
    private  static final String VIDEO_DETAIL = "video:detail:%s";

    /**
     * 通过videoId来创造key
     * @param videoId
     * @return
     */
    public static String getVideoDetailKey(int videoId) {
        return String.format(VIDEO_DETAIL,videoId);
    }
}
